package com.momoauth.gateway.enumeration;

import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
public enum CustomExceptionEnum {

    INVALID(40001, "Token已失效，请重新登录。"),
    UN_AUTH(40003, "很抱歉，该IP被拒绝访问。"),
    NULL_TOKEN(40005, "很抱歉，Token为空。"),
    OVERLOAD(40029, "系统繁忙，请稍后再试。");

    private Integer code;
    private String msg;

    CustomExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
